package com.os.meituan.repository.User;

import com.os.meituan.model.pomodel.Shop.T_SHOP_Imformation;
import com.os.meituan.model.pomodel.sec.SEC_User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface EPLC_SEC_UserResponsitory extends PagingAndSortingRepository<SEC_User,String>, JpaSpecificationExecutor<SEC_User> {
    @Query(value = "select o from SEC_User o where o.loginId = :loginId and o.isDelete=:isDelete and o.status='enabled'")
    SEC_User findByLoginIdAndIsDelete(String loginId, int isDelete);
}
